package com.training.config;

import cn.dev33.satoken.util.SaResult;
import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * @BelongsProject: environment-supervision
 * @BelongsPackage: com.training.config
 * @Author: Tianyu Han
 * @CreateTime: 2024-06-24  11:10
 * @Description: TODO
 * @Version: 1.0
 */
public class ConsumerBlockHandler {
    public static SaResult handlerException1(BlockException e){
        return SaResult.error().setMsg("限流了").setData("限流了");
    }
    public static SaResult handlerException2(BlockException e){
        return SaResult.error().setMsg("限流了").setData("限流了");
    }

}
